package com.aaa.coupon.dao;

import com.aaa.entity.Coupon;
import com.aaa.entity.CouponHistory;
import com.aaa.vo.CouponHistoryVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * @author 荆豪峰
 * @version 1.0
 * #Date: 2023/3/9 19:52
 */
public interface CouponDao extends BaseMapper<Coupon> {
    List<CouponHistoryVo> listCoupon(Integer memberId, Integer useStatus,String format);


    List<CouponHistoryVo> listCouponout(Integer memberId, Integer useStatus, String format);

    List<Coupon> getcoupon(String format);

    int updateCouponout(Integer couponId);

    int insertCoupon(Integer memberId, Integer couponId);

    int selectLimit(Integer memberId, Integer couponId);

    int selectLimits(Integer couponId);
}
